package reflectdemo;

public class Student {
    private String name="bit";
    public int age=19;
    public Student(){
        System.out.println("Student()");
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("Student(String,name)");
    }
    private void eat(){
        System.out.println("i am eating");
    }
    public void seep(){
        System.out.println("i am seeoling");
    }
    private void function(String str){
        System.out.println(str);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
